package com.bobo.myapplication.activity;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;

import com.bobo.myapplication.R;
import com.bobo.myapplication.utils.LogUtil;

/**
 * Created by ZJB on 2018/1/18.
 *
 * @ copyright: iwhere chengdu technology
 */

public class LogActivity extends BaseActivity{
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_log);
    }

    @Override
    protected void onResume() {
        super.onResume();
        testLog();
    }

    private void testLog() {
        test2Log();
    }

    private void test2Log() {
        test3Log();
    }

    private void test3Log() {
        LogUtil.getTargetStackTraceElement();
    }

    public static void start(Context context) {
        Intent starter = new Intent(context, LogActivity.class);
        context.startActivity(starter);
    }
}
